package org.jeecg.modules.demo.chen.service.impl;


import org.jeecg.modules.demo.chen.entity.Analysis;
import org.jeecg.modules.demo.chen.entity.SaleList;
import org.jeecg.modules.demo.chen.entity.Summary;
import org.jeecg.modules.demo.chen.entity.Target;
import org.jeecg.modules.demo.chen.mapper.ListMapper;
import org.jeecg.modules.demo.chen.service.ListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ListServiceImpl implements ListService {
    @Autowired
    ListMapper saleListDao;

    @Override
    public List<SaleList> findAllList() {
        return saleListDao.findAllList();
    }

    @Override
    public List<Analysis> findAllAnalysis() {
        return saleListDao.findAllAnalysis();
    }

    @Override
    public List<Summary> findAllSummary() {
        return saleListDao.findAllSummary();
    }

    @Override
    public List<Target> findAllTarget() {
        return saleListDao.findAllTarget();
    }


    @Override
    public Integer findListQuantity(Integer id) {
        return saleListDao.findListQuantity(id);
    }

    @Override
    public void updateLists(Integer id, Integer lists) {
        saleListDao.updateSaleList(id,lists);
    }

    @Override
    public Integer findID(Integer id) {
        return saleListDao.findID(id);
    }

    @Override
    public Integer findAnalysisQuantity() {
        return saleListDao.findAnalysisQuantity();
    }

    @Override
    public void updateAnalysis(Integer quantity) {
        saleListDao.updateAnalysis(quantity);
    }

    @Override
    public void updateSummary(Integer quantity) {
        saleListDao.updateSummaryYear(quantity);
    }

    @Override
    public Integer findAllQuantity() {
        return saleListDao.findAllQuantity();
    }


}
